using System.ComponentModel;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using HanumanInstitute.MvvmDialogs;

namespace AvaloniaUiKit.SampleApp.Views.Dialogs
{
    public partial class CustomDialog : UserControl, IView
    {
        public CustomDialog()
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }

        public void Initialize(INotifyPropertyChanged viewModel, ViewDefinition viewDef)
        {

        }

        public void InitializeExisting(INotifyPropertyChanged viewModel, object view)
        {

        }

        public object RefObj { get; }
        public event EventHandler? Loaded;
        public event EventHandler<CancelEventArgs>? Closing;
        public event EventHandler? Closed;
        public INotifyPropertyChanged? ViewModel { get; }
        public void Show(IView? owner)
        {

        }

        public  Task ShowDialogAsync(IView owner)
        {
            return Task.CompletedTask;

        }

        public void Activate()
        {

        }

        public void Close()
        {

        }

        public bool ClosingConfirmed { get; set; }
    }
}
